package org.bocs.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.bocs.entity.Category;
import org.bocs.entity.CategoryVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryDao extends BaseMapper<Category> {

    //2.子查询：根据parentId查询子分类
    public List<CategoryVO> selectAllCategories(int parentId);

    //3.查询一级类别
//    public List<CategoryVO> selectFirstLevelCategories();

}
